package operation;

import book.Book;
import book.Booklist;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: lenovo
 * Date: 2022-07-04
 * Time: 9:16
 */
public class DisplayOperation implements IOperation{
    @Override
    public void work(Booklist booklist) {
        System.out.println("显示图书");
        int current = booklist.getUesdsize();
        for (int i = 0; i < current; i++) {
                System.out.println(booklist.getBook(i));
            }
        }

}
